package cn.ad.server.web.spring.model;

import java.util.HashMap;
import java.util.Map;

/**
 * @author dongbin.yu
 * @from 2016-07-18
 * @since V1.0
 */
public enum Exchange {
	FALCON("1", "falcon"), ADVIEW("2", "adView"), GDT("3", "gdt"),BES("6", "bes");

	private String value;
	private String name;

	public final static Map<String, String> exchangeMap = new HashMap();

	static {
		for (Exchange exchange : values()) {
			exchangeMap.put(exchange.value, exchange.name);
		}
	}

	Exchange(String value, String name) {
		this.value = value;
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public String getName() {
		return name;
	}
}
